﻿<%@ Page Language="C#" MasterPageFile="~/Org/MasterPage.master" AutoEventWireup="true"
    ValidateRequest="false" CodeFile="frmO_EmpWorkSkillInput.aspx.cs" Inherits="Org_frmO_EmpWorkSkillInput"
    Culture="ja-JP" UICulture="ja" Title=" 業務スキル情報登録" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    業務スキル情報登録
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:HiddenField ID="number1" runat="server" Value="0" />

    <script type="text/javascript" src="../js/jquery.min.js"></script>

    <script type="text/javascript" src="../js/Validation.js"></script>

    <script type="text/javascript">
            
            function checkDateNull(Src, args)
            {
                var tem = args.Value;
                if(tem != "____/__/__")
                    args.IsValid = true;
                else
                    args.IsValid = false;
            }
            
            $(document).ready(function(e) {

                registerEnterEvent("enter", "<%= btn登録.ClientID %>", 4);
                registerControlToValidation("validation");
                formatDate("css_text_calender", "/");

            });

             
    </script>

    <div class="maindiv1">
        <div class="Header1">
            <span>＊: 必須</span>
        </div>
        <div class="NoteStyle">
            <span>※下記の情報があれば、必須項目を入力してください。なければ、次ボタンを押してください。 </span>
        </div>
        <div>
            &nbsp;</div>
        <div class="detail-admin-row">
            <span class="detail-admin-label">業務スキル :</span>
            <asp:DropDownList ID="ddl_業務スキル" runat="server" Width="154px" Font-Names="MS UI Gothic"
                ValidationGroup="detailform" CssClass="mytextbox enter validation">
                <asp:ListItem Value="-11" Selected="true">[選択]</asp:ListItem>
            </asp:DropDownList>
            <span class="required-field">*</span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage=""
                Display="None" InitialValue="-11" ControlToValidate="ddl_業務スキル" SetFocusOnError="False"></asp:RequiredFieldValidator>
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1" Width="260px"
                TargetControlID="RequiredFieldValidator3" HighlightCssClass="invalid" CssClass="CustomValidatorCalloutStyle"
                WarningIconImageUrl="../Images/warning.png" />
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label">レベル :</span>
            <asp:TextBox ID="txt_レベル" runat="server" Width="148px" Font-Names="MS UI Gothic"
                MaxLength="100" ValidationGroup="detailform" CssClass="mytextbox enter validation"></asp:TextBox>
            <span class="required-field">*</span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage=""
                Display="None" SetFocusOnError="False" ControlToValidate="txt_レベル"></asp:RequiredFieldValidator>
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender11" Width="260px"
                TargetControlID="RequiredFieldValidator1" HighlightCssClass="invalid" CssClass="CustomValidatorCalloutStyle"
                WarningIconImageUrl="../Images/warning.png" />
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label">発行機関 :</span>
            <asp:TextBox ID="txt_発行機関" runat="server" Width="148px" Font-Names="MS UI Gothic"
                MaxLength="200" ValidationGroup="detailform" CssClass="mytextbox enter"></asp:TextBox>
            <span class="required-field"></span>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label">発行日 :</span>
            <asp:TextBox ID="txt_発行日" runat="server" Width="149px" 
                ValidationGroup="detailform" onkeypress="return InputNumberKeys(this, event)"
                Font-Names="MS UI Gothic" Style="ime-mode: disabled" CssClass="mytextbox enter validation  css_text_calender"></asp:TextBox>
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="../Images/calendar.jpg"
                Height="16px" CssClass="cal_Img" CausesValidation="False" ValidationGroup="detailform" />
            <span class="required-field">*</span>
            <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" PopupButtonID="ImageButton2"
                TargetControlID="txt_発行日" Format="yyyy/MM/dd">
            </ajaxToolkit:CalendarExtender>
            
            <asp:RequiredFieldValidator ID="CustomValidator1" runat="server" ErrorMessage=""
                Display="None" ControlToValidate="txt_発行日" SetFocusOnError="False"></asp:RequiredFieldValidator>
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2" Width="260px"
                TargetControlID="CustomValidator1" HighlightCssClass="invalid1" CssClass="CustomValidatorCalloutStyle"
                WarningIconImageUrl="../Images/warning.png" />
                
            <asp:CustomValidator ID="RegularExpressionValidator1" ControlToValidate="txt_発行日"
                runat="server" ErrorMessage="CustomValidator" Display="None" ClientValidationFunction="isDate"
                SetFocusOnError="False">
            </asp:CustomValidator>
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3" Width="240px"
                TargetControlID="RegularExpressionValidator1" HighlightCssClass="invalid" CssClass="CustomValidatorCalloutStyle"
                WarningIconImageUrl="../Images/warning.png" />
        </div>
        <br />
        <div class="detail-admin-row">
            <span class="detail-admin-label">&nbsp;</span>
            <asp:Button ID="btn登録" runat="server" Text="登録" CssClass="btn" OnClick="btn登録_Click"
                OnClientClick="javascript:focusToControlErr();" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnリセット" runat="server" Text="リセット" CssClass="btn" OnClick="btnリセット_Click"
                 CausesValidation="False" />
        </div>
        <!--<div class="Header4">＊: 本人住所情報一覧 </div>
   
    <asp:HiddenField id="hd_pageCount" runat="server"></asp:HiddenField> 
    <div style="MARGIN: 10px 50px 50px" class="detail-admin-row">
            <asp:GridView id="grv_human" runat="server"  BorderColor="Black"  BorderWidth="1px" BackColor="LightGoldenrodYellow" Width="100%" AllowSorting="True" EmptyDataText="trong" ShowFooter="True" Height="40px" AutoGenerateColumns="False" CssClass="grid">
            
            <Columns>
            
                <asp:TemplateField HeaderText="住民票住所" SortExpression="住民票住所"><ItemTemplate>
                    <asp:LinkButton id="HyperLink1" runat="server" Text='<%# Eval("住民票住所") %>' CommandArgument='<%# Eval("社員ID") %>' CommandName="view" ></asp:LinkButton> 
                   
                </ItemTemplate>
                 <FooterTemplate>
                         <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/controls/first copy.gif"  CommandArgument="First" CommandName="Page" />
                        <asp:ImageButton ID="ImageButton2" runat="server"   ImageUrl="~/Images/controls/last copy.gif" CommandArgument="Prev" CommandName="Page"/>
                         ページ<asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="True" ></asp:DropDownList> 
                            / <asp:Label ID="lblPageCount" runat="server"></asp:Label>
                             <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/controls/next copy.gif"   CommandArgument="Next" CommandName="Page" />
                        <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/Images/controls/previous copy.gif"  CommandArgument="Last" CommandName="Page"/>
                    </FooterTemplate>
                     <FooterStyle HorizontalAlign="center" VerticalAlign="Middle"  BorderWidth="0px" BorderStyle="None"  BackColor="Tan"></FooterStyle>
               
                <HeaderStyle BackColor="Tan" Font-Bold="True"></HeaderStyle>
                
                </asp:TemplateField>

                
                <asp:TemplateField HeaderText="電話番号" SortExpression="電話番号">
                    
                    <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("電話番号") %>'></asp:Label>
                     </ItemTemplate>
                  
                    <HeaderStyle BackColor="Tan" Font-Bold="True"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="住居区分" SortExpression="住居区分">
                   
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("住居区分") %>'></asp:Label>
                    </ItemTemplate>
                   
                    <HeaderStyle BackColor="Tan" Font-Bold="True"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>  
                <asp:TemplateField HeaderText="居住開始日" SortExpression="居住開始日">
                   
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("居住開始日") %>'></asp:Label>
                    </ItemTemplate>
                   
                    <HeaderStyle BackColor="Tan" Font-Bold="True"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>   
                                              
          </Columns>
           <SelectedRowStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" />
    </asp:GridView> -->
    </div>
    <div class="detail-admin-row">
        <div class="btn_back">
            <asp:Button ID="btn_戻る" runat="server" Text="←戻る" OnClick="btn_戻る_Click" CssClass="btn"
                CausesValidation="False" />
        </div>
        <div class="btn_next">
            <asp:Button ID="btn_次" runat="server" Text="次→" OnClick="btn_次_Click" CssClass="btn"
                CausesValidation="False" />
        </div>
    </div>
    <div>
        &nbsp;</div>
    <br />
    <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btn登録" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>--%>
</asp:Content>
